package net.mihome.app.view;

import android.content.Context;
import android.os.Handler;
import android.util.AttributeSet;
import android.widget.GridView;
import android.widget.TextView;

import net.mihome.app.adapter.MifuwuAdapter;

public class MifuwuGridView extends GridView {
	private MifuwuAdapter mifuwuAdapter;
	private TextView testTextView;

    public final static String BAOXIU="报修";
    public final static String BANZHENGBANGZHU="办证帮助";
    public final static String SHANGJIA="商家";
	private Handler handler;
	public MifuwuGridView(Context context) {
		super(context);
		afterCustor();
	}
	
	public MifuwuGridView(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
		afterCustor();
	}

	public MifuwuGridView(Context context, AttributeSet attrs) {
		super(context, attrs);
		afterCustor();
	}
	/**
	 * 构造函数之后调用的方法
	 * */
	public void afterCustor(){
		initAdapter();
	}
	/**
	 * 设置adapter
	 * */
	public void initAdapter(){
		mifuwuAdapter=new MifuwuAdapter(this.getContext());
		this.setAdapter(mifuwuAdapter);
	}
}
